<?php

use Illuminate\Database\Migrations\Migration;

class CreateAccidentsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('accidents', function($table) {
			$table->increments('id');
			$table->string('title');
			$table->text('description');
			$table->date('happend');
			$table->integer('death');
			$table->integer('injury');
			$table->integer('bad_injury');
			$table->integer('case_id');
			$table->integer('status_id');
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('accidents');
	}

}